﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;




namespace spbtzb
{
    /// <summary>
    /// Summary description for ConString
    /// </summary>
    public class ConString
    {
        private ConString()
        {
            //
            // TODO: Add constructor logic here
            //          
        }

        private static String StrConfig = ConfigurationManager.AppSettings["ConnString"];
        public static String ConnString
        {
            get
            {
                String temp = String.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Persist Security Info=True;Jet OLEDB:Database Password=cqusoftware",
                HttpContext.Current.Request.PhysicalApplicationPath + StrConfig);
                //String t = HttpContext.Current.Request.PhysicalApplicationPath;
                    //"E:\\spbtzb\\spbtzb\\spbtzb\\App_Data\\spbtzb.mdb");
                //E:\spbtzb\spbtzb\spbtzb\BackGround\App_Data\spbtzb.mdb'
                return temp;
            }
 
        }
    } // class
}//ns
